import { Action, Actor } from 'iflux2'
import { refundTypes } from '../constant/action-type.js'
export default class RefundActor extends Actor {
    defaultState (){
        return {
            refund:{
                applyRefundAmount:0,//申请退款金额
                payAmount:0,//实际可退款金额
                tradeOrder:{},//订单信息
                payTypeBOList:[],//退款方式
            }
        }
    }

    @Action(refundTypes.SET_REFUND_ORDER)
    setOrder(state,refund){
        return state.set('refund', refund);
    }
}